import { ref } from 'vue'
import { defineStore } from 'pinia'
import { getCategoryAPI } from '@/apis/layout.js';

export const useCategoryStore = defineStore('category', () => {
    let categoryList = ref([])
    const getCategory = async () => {
        let result = await getCategoryAPI()
        categoryList.value = result.data
    }
    return {
        categoryList, getCategory
    }
})
